package com.yzy.fly.kernel.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.yzy.fly.kernel.model.ability.role.Role;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class Base2 implements Role,Serializable {
    private Long id;
    private Long globalId;
    private String saleman;

    @JSONField(serialize = false,deserialize = false)
    @Override
    public List<Role> getRoleChildrens() {
        return null;
    }

    @Override
    public String toJSONString() {
        return null;
    }

    @Override
    public String toJSONString(SerializerFeature... features) {
        return null;
    }

    public Object getRolePropertyValue(String propertyName) {
        return null;
    }

    @Override
    public Long getRoleId() {
        return id == null ? null : Long.valueOf(id);
    }

    @Override
    public Long getRoleGlobalId() {
        return globalId == null ? null :Long.valueOf(globalId);
    }
    @Override
    public String getRoleName() {
        return Base2.class.getName();
    }
}
